import java.net.*;
import java.io.*;
import java.util.*;

public class Practice9_1 {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
        String l = sc.nextLine();
        URL url = new URL(l);

        System.out.println("Protocol: "+url.getProtocol());
        System.out.println("Host: "+url.getHost());
        System.out.println("File: "+url.getFile());

        InputStream is = url.openStream();
		byte[] b = new byte[1024];  
		int len;
		System.out.println("File contents:");
		while((len = is.read(b)) != -1) {  
			String str = new String(b, 0, len);  
			System.out.println(str);
		}
		is.close();
		sc.close();
    }
}
		